'use strict'

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    const { STRING, INTEGER } = Sequelize

    await queryInterface.createTable('menus', {
      id: { type: STRING, primaryKey: true },
      parent: INTEGER(5),
      path: STRING(200),
      title: STRING(200),
      icon: STRING(200),
      order: INTEGER(5),
      category: STRING(11),
    })
  },

  async down(queryInterface) {
    queryInterface.dropTable('menus')
  },
}
